package com.wugh.fast.module.api.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 说明:
 *
 * @author wugh
 * @date 2019-01-18 11:46
 */
@Data
@Accessors(chain = true)
@ApiModel("批量删除业务对象")
public class BatchDeleteBO<ID extends Serializable> {
    @NotNull(message = "缺少主键")
    @Size.List(@Size(message = "缺少主键", min = 1))
    @ApiModelProperty("主键集合")
    private List<ID> ids;
}
